package com.jky.stmall.front.entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

@Data
@ToString
@NoArgsConstructor
public class Category implements Serializable {
    private Integer id;
    private String name;
    private String desc;
    private Integer parentId;
    private Integer recom;
    private Integer status;
    private String pic;


    //父分类的信息，一对一的
    private Category parent;
    //子分类的信息，一对多的
    private List<Category> children;
}
